home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / ovals=opcodes.hex < prev    next >
Text File  |  1992-11-01  |  2KB  |  60 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. 02 AA AA AA AA AA AA AA AA % fill pat
  10. 09 FF FF FF FF FF FF FF FF % pn pat
  11. 0A AA 55 AA 55 AA 55 AA 55 % back pat
  12.  
  13. % draw lines along its four sides
  14. 20 0010 0000 0010 00FF
  15. 20 0000 0010 00FF 0010
  16. 20 0050 0000 0050 00FF
  17. 20 0000 0050 00FF 0050
  18.  
  19. 20 0000 0080 00FF 0080
  20. 20 0000 00C0 00FF 00C0
  21.  
  22. 20 0080 0000 0080 00FF
  23. 20 00C0 0000 00C0 00FF
  24.  
  25. 09 FF FF FF FF FF FF FF FF % pn pat
  26.  
  27. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  28. %
  29. %    Do the standard opcode test, but for ovals.:
  30. %    This involves using each of the 5 primary opcodes
  31. %    (frame, paint, erase, invert, and fill) for ovals in
  32. %    a nice square little grid.  This allows us to visually
  33. %    test that each opcode minimially does what it should, and
  34. %    that pixels are being drawn in the right places (i.e.
  35. %    that they touch the grid we drew above in the right places
  36. %    and not in others)
  37. %
  38. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  39.  
  40.  
  41.  
  42. % Frame an oval
  43. 50 0010 0010 0050 0050
  44.  
  45. % paint an adjacent one
  46. 51 0010 0080 0050 00C0
  47.  
  48. % try to invert the painted one (ha ha)
  49. 53 0010 0080 0050 00C0
  50.  
  51. % fill one below one
  52. 54 0080 0080 00C0 00C0
  53.  
  54. % erase a different one 
  55. 52 0080 0010 00C0 0050
  56.  
  57.  
  58.  
  59. FF    % end
  60.